package com.javatoc.directory;

public class TestNative {
	static {
		try {
			System.out.println("加载库信息:" + System.getProperty("java.library.path"));
			System.loadLibrary("com_HelloNative"); // 没有lib前缀
		} catch (UnsatisfiedLinkError e) {
			System.out.println("Cannot load hello library:\n " + e.toString());
		}
	}

	public static void main(String[] args) {
		HelloNative test = new HelloNative();
		test.sayHello();
	}
}
